﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace hoemwork
{
    public class Major
    {
        public int MajorId { get; set; }
        [Required(ErrorMessage="*")]
        public string Name { get; set; }
        [NotMapped]
        public double Difficulty { get; set; }
        [NotMapped]
        public Teacher Teacher { get; internal set; }

        //public int TeacherId{ get; set; }
        //public string TeacherName { get; set; }
        //public int Age { get; set; }
    }
}